<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>调试</title>
		
	</head>
	<body>
		<script type="text/javascript">
			var date=prompt("请输入当前时间","");
			if(date>6&&date<12){
				document.write("上午好，欢迎来到贵美！"+"<br />");
				for (var i=0;i<date;i++) {
					document.write("<img src='img/smile.gif'/>");
				}
			}
			
				
				
			
				else if(date>13&&date<20){
					document.write("下午好，欢迎来到贵美！"+"<br />");
				for (var i=0;i<date;i++) {
					document.write("<img src='img/aftermoon.gif'/>");
				}
				
			}
				else{
					document.write("夜深了，该休息了亲！"+"<br />");
				for (var i=0;i<date;i++) {
					document.write("<img src='img/moon.gif'/>");
				}
				
			}
			
			
		</script>
	</body>
</html>
